<!--子组建-->
<template>
    <div>
        <p><input v-model="user.firstName" type="text"></p>
        <p><input v-model="user.lastName" type="text"></p>

        <p>
        <slot name="solt_test_name1" v-bind:user="user">
            {{user.firstName}}
        </slot>
        </p>

    </div>
</template>
<script>
    export default {
        props: ['title'],
        data() {
            return {
                childValue: '我是子组件的数据',
                user: {
                    firstName: 'asd',
                    lastName: 'qwe'
                }
            }
        },
        methods: {}
    }
</script>